﻿using Delphi.Mimir.Config;
using Delphi.Mimir.Data.Entities.Raw;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Delphi.Mimir.Wrapper {
    public class CorporateActionWrapper {

        public static void SetCorporateActions(List<RawCorporateAction> corporateActions) {
            using(var context = new DelphiContext()) {
                context.RawCorporateActions.AddRange(corporateActions);
                context.SaveChanges();
            }
        }
    }
}
